package com.project.bean;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 销售明细实体类
 * @author zcf
 *
 */
@TableName("t_sell_info")
public class SellInfoBean {
	/**销售明细ID*/
	@TableId(value = "pk_sInfoId",type = IdType.AUTO)
	private Integer id;
	/**销售商品ID*/
	@TableField("fk_productId")
	private String productId;
	/**销售ID*/
	@TableField("fk_sellId")
	private Integer sellId;
	/**商品对象*/
	@TableField(exist = false)
	private ProductBean product;
	/**销售对象*/
	@TableField(exist = false)
	private SellBean sell;
	/**销售数量*/
	@TableField("si_sellNumber")
	private int sellNumber;
	/**成交价*/
	@TableField("si_sellMoney")
	private int sellMoney;
	public SellInfoBean(String productId, int sellId, int sellNumber, int sellMoney) {
		super();
		this.productId = productId;
		this.sellId = sellId;
		this.sellNumber = sellNumber;
		this.sellMoney = sellMoney;
	}
	public SellInfoBean() {
		super();
		// TODO Auto-generated constructor stub
	}

	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public int getSellId() {
		return sellId;
	}

	public void setSellId(int sellId) {
		this.sellId = sellId;
	}

	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public ProductBean getProduct() {
		return product;
	}
	public void setProduct(ProductBean product) {
		this.product = product;
	}
	public SellBean getSell() {
		return sell;
	}
	public void setSell(SellBean sell) {
		this.sell = sell;
	}
	public int getSellNumber() {
		return sellNumber;
	}
	public void setSellNumber(int sellNumber) {
		this.sellNumber = sellNumber;
	}
	public int getSellMoney() {
		return sellMoney;
	}
	public void setSellMoney(int sellMoney) {
		this.sellMoney = sellMoney;
	}
	@Override
	public String toString() {
		return "SellInfoBean [id=" + id + ", product=" + product + ", sell=" + sell + ", sellNumber=" + sellNumber
				+ ", sellMoney=" + sellMoney + "]";
	}
}
